<?php
/**
 * 交易所钱包.
 * User: madong
 * Date: 2018/10/5
 * Time: 4:01 PM
 */

namespace app\api\controller\jiaoyi;
use think\Controller;
use app\api\model\JiaoyiUinfo;
class Changwaicoin extends Controller
{
    //交易所钱包余额获取

    public function Get_coin_balance($uname){

        $jiaoyiobj = new JiaoyiUinfo();

        $res = $jiaoyiobj->where('uname',$uname)->column('uname,eth,omec,ae,btm,snt,iost,zrx,zil,deth,domec,dae,dbtm,dsnt,diost,dzrx,dzil')[$uname];

        if ($res){

            echo json_encode(['zt'=> 1,'msg'=>$res]);

        }else{

            echo json_encode(['zt'=>0,'msg'=>'余额获取失败！']);

        }

    }

}